'''
Created on Apr 24, 2011

@author: ck
'''
import wx

class Dockable(wx.Frame):
    def __init__(self,parent,id,title):
        wx.Frame.__init__(self,parent,id,title)
        menubar=wx.MenuBar(wx.MB_DOCKABLE)
        file=wx.Menu()
        edit=wx.Menu()
        view=wx.Menu()
        insr=wx.Menu()
        form=wx.Menu()
        tool=wx.Menu()
        help=wx.Menu()
        
        menubar.Append(file,'&File')
        menubar.Append(edit,'&Edit')
        menubar.Append(view,'&View')
        menubar.Append(insr,'&Insert')
        menubar.Append(form,'&Format')
        menubar.Append(tool,'&Tool')
        menubar.Append(help,'&Help')
        
        self.SetMenuBar(menubar)
        self.Centre()
        self.Show(True)
        
app=wx.App()
Dockable(None,-1,'Dockable menu')
app.MainLoop()